package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Commdity;
import com.example.demo.entity.Evaluate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EvaluateMapper extends BaseMapper<Evaluate> {
    @Select("SELECT id,commodityid,username,evaluate FROM userevaluate where commodityid=#{commodityid}")
    List<Evaluate> findevaluate(int commodityid);
}
